package bbalgae.swing.outline;

import java.awt.GridLayout;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;

public class J15_GridLayout extends JFrame {
	public J15_GridLayout() {
		setDefaultLookAndFeelDecorated(true);
		setTitle("그리드레이아웃");
		setLayout(new GridLayout(4, 4, 10, 10));
		setBounds(300, 300, 640, 480);
		for(int i=1; i<=10; i++){
			add(new JButton("버튼"+i));
			
		}
setVisible(true);		
	}

	public static void main(String[] args) {

		SwingUtilities.invokeLater(new Runnable() {

			@Override
			public void run() {
			new J15_GridLayout();
			}
		});

	}
}
